package com.darkevil.jdspider.mapper

import com.darkevil.jdspider.entity.Product
import org.apache.ibatis.annotations.Param
import org.springframework.stereotype.Component

@Component
interface ProductMapper {
    fun replace(product: Product): Int

    fun batchReplace(productList: List<Product>): Int

    fun getProductById(@Param("id") id: String): Product?
}